export const oneSubscription = [
  {
    fromDatetime: '2024-01-01T00:00:00Z',
    toDatetime: '2024-01-09T13:01:38Z',
    chargesFromDatetime: '2024-01-01T00:00:00Z',
    chargesToDatetime: '2024-01-09T13:01:38Z',
    inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
    inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
    subscription: {
      id: '59514df0-1abe-47dd-be36-445c9279240e',
      name: '',
      plan: {
        id: 'da8abf9d-022f-482c-a949-466c0131e080',
        name: 'maxi plan',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: '5f604cdd-d096-482c-b997-6907bf0c16ab',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '600',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage minimum spending',
        itemName: 'Count BM',
        units: 6,
        preciseUnitAmount: 1,
        appliedTaxes: [
          {
            id: 'e92dc699-c0e6-4705-9496-9e16738dbf2e',
            taxRate: 20,
          },
        ],
        trueUpFee: {
          id: '231775c5-c7a5-4784-b728-c79c89196f7c',
        },
        trueUpParentFee: null,
        charge: {
          id: '73f02087-9204-41e3-8b1d-30de231c200e',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage minimum spending',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '1100000',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },

      {
        id: 'f8f77c9c-ed1a-46e8-a3ef-d65a6a1db953',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '206',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated percentage',
        itemName: 'Count BM',
        units: 6,
        preciseUnitAmount: 0.343333333333333,
        appliedTaxes: [
          {
            id: 'f2b5077a-91c2-4dc2-b1e2-08660c4b9c20',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '1fb14cde-845a-4c1c-8729-6b8d8850aa9b',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated percentage',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated_percentage',
          minAmountCents: '0',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: [
            {
              flatUnitAmount: '1.0',
              fromValue: 0,
              perUnitTotalAmount: '0.01',
              rate: '1.0',
              toValue: 1,
              totalWithFlatAmount: '1.01',
              units: '1.0',
            },
            {
              flatUnitAmount: '1.0',
              fromValue: 2,
              perUnitTotalAmount: '0.05',
              rate: '1.0',
              toValue: null,
              totalWithFlatAmount: '1.05',
              units: '5.0',
            },
          ],
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '2903',
        description: null,
        feeType: 'subscription',
        invoiceDisplayName: null,
        invoiceName: 'sub fee',
        itemName: 'maxi plan',
        units: 1,
        preciseUnitAmount: 29.03,
        appliedTaxes: [
          {
            id: '19f72015-a550-41cf-8839-126538807aef',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: null,
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '66dbd1ea-bf62-470c-9af2-8094f55b6ce2',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '700',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears volume',
        itemName: 'Count BM',
        units: 6,
        preciseUnitAmount: 1.166666666666667,
        appliedTaxes: [
          {
            id: '27a3dac2-0ee6-48c6-8261-7f39286f8de6',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '2d7e977b-75a0-49dc-8ba6-33d1f3588b1f',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears volume',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'volume',
          minAmountCents: '0',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: '1.0',
          perUnitAmount: '1.0',
          perUnitTotalAmount: '6.0',
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '907a7c26-08e7-41af-9d9f-863a5b7b83f6',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '800',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated',
        itemName: 'Sum BM',
        units: 6,
        preciseUnitAmount: 1.333333333333333,
        appliedTaxes: [
          {
            id: '8bfe3b59-1547-4ff1-8a0e-787126d369e5',
            taxRate: 25,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: 'ddbb9a53-cc4a-4d8e-a7ee-be7cc74fa51a',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: [
            {
              flatUnitAmount: '1.0',
              fromValue: 0,
              perUnitAmount: '1.0',
              perUnitTotalAmount: '1.0',
              toValue: 1,
              totalWithFlatAmount: '2.0',
              units: '1.0',
            },
            {
              flatUnitAmount: '1.0',
              fromValue: 2,
              perUnitAmount: '1.0',
              perUnitTotalAmount: '5.0',
              toValue: null,
              totalWithFlatAmount: '6.0',
              units: '5.0',
            },
          ],
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '8845bd12-14ff-4101-8022-194b9af0c773',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '200',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears package 1 dim',
        itemName: 'Count BM - One dimension',
        units: 6,
        preciseUnitAmount: 0.333333333333333,
        appliedTaxes: [
          {
            id: '0ce2df5f-ffe9-4695-8e1f-006df01ccf38',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: 'b21c33f9-e290-489f-a4b7-e2f86c5dfc77',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears package 1 dim',
          billableMetric: {
            id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
            name: 'Count BM - One dimension',
            aggregationType: 'count_agg',
          },
          chargeModel: 'package',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: {
            region: ['france'],
          },
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: '0.0',
          paidUnits: '6.0',
          perPackageSize: 10,
          perPackageUnitAmount: '2.0',
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '32206e16-eaa9-4a54-9d14-5f16c8df063a',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '100',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears package 1 dim',
        itemName: 'Count BM - One dimension',
        units: 1,
        preciseUnitAmount: 1,
        appliedTaxes: [
          {
            id: '9b75ac14-4287-4288-9b6c-169dc3a9c4b6',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: 'b21c33f9-e290-489f-a4b7-e2f86c5dfc77',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears package 1 dim',
          billableMetric: {
            id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
            name: 'Count BM - One dimension',
            aggregationType: 'count_agg',
          },
          chargeModel: 'package',
          minAmountCents: '0',
          prorated: false,
          subscriptions: {},
        },
        chargeFilter: {
          values: { region: ['italy'] },
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: '0.0',
          paidUnits: '1.0',
          perPackageSize: 10,
          perPackageUnitAmount: '1.0',
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '30eec11f-d336-44f1-b114-f6c7f51d92c9',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '605',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 6,
        preciseUnitAmount: 1.008333333333333,
        appliedTaxes: [
          {
            id: '5041eb21-813f-41e3-b4bf-a1ec25cb8e0c',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '4d98f89d-236a-4c4c-8b9d-7cd45a24430b',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { provider: ['AWS'], region: ['europe'] },
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.05',
          freeUnits: '1.0',
          paidUnits: '5.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '5.0',
          fixedFeeUnitAmount: '1.0',
          freeEvents: 1,
          minMaxAdjustmentTotalAmount: '1.0',
          paidEvents: 5,
          rate: '1.0',
          units: '6.0',
        },
      },
      {
        id: 'a088af7b-caa7-463c-b102-e770e618afcd',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '12',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 6,
        preciseUnitAmount: 0.02,
        appliedTaxes: [
          {
            id: '6ea398d9-0695-4a5c-b891-b7ba5245af88',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '4d98f89d-236a-4c4c-8b9d-7cd45a24430b',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { provider: ['AWS'], region: ['usa'] },
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.12',
          freeUnits: '0.0',
          paidUnits: '6.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 6,
          rate: '2.0',
          units: '6.0',
        },
      },
      {
        id: '9acd0bf9-193e-45fa-953f-ef3df74f7488',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '9',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 6,
        preciseUnitAmount: 0.015,
        appliedTaxes: [
          {
            id: '38e712da-8b36-48ca-83bf-d29a4f5f64c7',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '4d98f89d-236a-4c4c-8b9d-7cd45a24430b',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          invoiceDisplayName: 'GOOOOOOOO USA!',
          values: { provider: ['Google'], region: ['usa'] },
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.09',
          freeUnits: '3.0',
          paidUnits: '3.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 2,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 4,
          rate: '3.0',
          units: '6.0',
        },
      },
      {
        id: '06e0b486-d694-475a-b6a7-8d1554f4d12e',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '600',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears standard',
        itemName: 'Sum BM',
        units: 6,
        preciseUnitAmount: 1,
        appliedTaxes: [
          {
            id: '130b2f46-480e-46f0-be8c-2f29621a7e62',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '686e24ba-7eb5-4256-92bf-7d0a11d53968',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears standard',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '0',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '231775c5-c7a5-4784-b728-c79c89196f7c',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '318754',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage minimum spending',
        itemName: 'Count BM',
        units: 1,
        preciseUnitAmount: 3187.54,
        appliedTaxes: [
          {
            id: '6f4c8c90-a622-46b1-924e-36a7dc698fdb',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: {
          id: '5f604cdd-d096-482c-b997-6907bf0c16ab',
        },
        charge: {
          id: '73f02087-9204-41e3-8b1d-30de231c200e',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage minimum spending',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '1100000',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'd475af54-e604-4ff8-ac51-b6597d4ff5bc',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '1000',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 10,
        appliedTaxes: [
          {
            id: '4b5aff80-1cd1-48a8-bb7d-28adcbd75a97',
            taxRate: 20,
          },
        ],
        trueUpFee: {
          id: '57109269-6eea-4edc-9dc4-8c97f09a4392',
        },
        trueUpParentFee: null,
        charge: {
          id: '34398e7c-eecb-4e63-8aa5-d7a0211b974b',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '9999900',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '57109269-6eea-4edc-9dc4-8c97f09a4392',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '2902196',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 29021.96,
        appliedTaxes: [
          {
            id: '068c65bc-37b7-4665-ae14-98f8c55e2bc3',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: {
          id: 'd475af54-e604-4ff8-ac51-b6597d4ff5bc',
        },
        charge: {
          id: '34398e7c-eecb-4e63-8aa5-d7a0211b974b',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '9999900',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'b95af8ba-a0f1-4a1b-aa81-7964904f5130',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '900',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'Count BM',
        itemName: 'Count BM',
        units: 6,
        preciseUnitAmount: 1.5,
        appliedTaxes: [
          {
            id: '4f6b6f09-30d4-402d-b315-2b840626312a',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '0830cd9e-63de-45f9-9c8d-5c5e4550ee7f',
          payInAdvance: false,
          invoiceDisplayName: null,
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: [
            {
              flatUnitAmount: '1.0',
              fromValue: 0,
              perUnitAmount: '1.0',
              perUnitTotalAmount: '1.0',
              toValue: 1,
              totalWithFlatAmount: '2.0',
              units: '1.0',
            },
            {
              flatUnitAmount: '1.0',
              fromValue: 2,
              perUnitAmount: '1.0',
              perUnitTotalAmount: '2.0',
              toValue: 3,
              totalWithFlatAmount: '3.0',
              units: '2.0',
            },
            {
              flatUnitAmount: '1.0',
              fromValue: 4,
              perUnitAmount: '1.0',
              perUnitTotalAmount: '3.0',
              toValue: null,
              totalWithFlatAmount: '4.0',
              units: '3.0',
            },
          ],
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
]

export const oneSubscriptionResult = {
  metadata: {
    hasAnyFeeParsed: true,
    hasAnyPositiveFeeParsed: true,
  },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInArrearsZero: [],
      feesInAdvance: [],
      feesInAdvanceZero: [],
      feesInArrears: [
        {
          amountCents: '2903',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '19f72015-a550-41cf-8839-126538807aef',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          feeType: 'subscription',
          id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan',
          metadata: {
            displayName: 'Monthly subscription fee - maxi plan',
            isSubscriptionFee: true,
          },
          preciseUnitAmount: 29.03,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '900',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: [
              {
                flatUnitAmount: '1.0',
                fromValue: 0,
                perUnitAmount: '1.0',
                perUnitTotalAmount: '1.0',
                toValue: 1,
                totalWithFlatAmount: '2.0',
                units: '1.0',
              },
              {
                flatUnitAmount: '1.0',
                fromValue: 2,
                perUnitAmount: '1.0',
                perUnitTotalAmount: '2.0',
                toValue: 3,
                totalWithFlatAmount: '3.0',
                units: '2.0',
              },
              {
                flatUnitAmount: '1.0',
                fromValue: 4,
                perUnitAmount: '1.0',
                perUnitTotalAmount: '3.0',
                toValue: null,
                totalWithFlatAmount: '4.0',
                units: '3.0',
              },
            ],
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '4f6b6f09-30d4-402d-b315-2b840626312a',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'graduated',
            id: '0830cd9e-63de-45f9-9c8d-5c5e4550ee7f',
            invoiceDisplayName: null,
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: 'b95af8ba-a0f1-4a1b-aa81-7964904f5130',
          invoiceDisplayName: null,
          invoiceName: 'Count BM',
          itemName: 'Count BM',
          metadata: {
            displayName: 'Count BM',
            isNormalFee: true,
          },
          preciseUnitAmount: 1.5,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '800',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: [
              {
                flatUnitAmount: '1.0',
                fromValue: 0,
                perUnitAmount: '1.0',
                perUnitTotalAmount: '1.0',
                toValue: 1,
                totalWithFlatAmount: '2.0',
                units: '1.0',
              },
              {
                flatUnitAmount: '1.0',
                fromValue: 2,
                perUnitAmount: '1.0',
                perUnitTotalAmount: '5.0',
                toValue: null,
                totalWithFlatAmount: '6.0',
                units: '5.0',
              },
            ],
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '8bfe3b59-1547-4ff1-8a0e-787126d369e5',
              taxRate: 25,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'sum_agg',
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
            },
            chargeModel: 'graduated',
            id: 'ddbb9a53-cc4a-4d8e-a7ee-be7cc74fa51a',
            invoiceDisplayName: 'metered arrears graduated',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: '907a7c26-08e7-41af-9d9f-863a5b7b83f6',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated',
          itemName: 'Sum BM',
          metadata: {
            displayName: 'metered arrears graduated',
            isNormalFee: true,
          },
          preciseUnitAmount: 1.333333333333333,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '206',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: [
              {
                flatUnitAmount: '1.0',
                fromValue: 0,
                perUnitTotalAmount: '0.01',
                rate: '1.0',
                toValue: 1,
                totalWithFlatAmount: '1.01',
                units: '1.0',
              },
              {
                flatUnitAmount: '1.0',
                fromValue: 2,
                perUnitTotalAmount: '0.05',
                rate: '1.0',
                toValue: null,
                totalWithFlatAmount: '1.05',
                units: '5.0',
              },
            ],
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'f2b5077a-91c2-4dc2-b1e2-08660c4b9c20',
              taxRate: 0,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'graduated_percentage',
            id: '1fb14cde-845a-4c1c-8729-6b8d8850aa9b',
            invoiceDisplayName: 'metered arrears graduated percentage',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: 'f8f77c9c-ed1a-46e8-a3ef-d65a6a1db953',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated percentage',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears graduated percentage',
            isNormalFee: true,
          },
          preciseUnitAmount: 0.343333333333333,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '200',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: '0.0',
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: '6.0',
            perPackageSize: 10,
            perPackageUnitAmount: '2.0',
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '0ce2df5f-ffe9-4695-8e1f-006df01ccf38',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
              name: 'Count BM - One dimension',
            },
            chargeModel: 'package',
            id: 'b21c33f9-e290-489f-a4b7-e2f86c5dfc77',
            invoiceDisplayName: 'metered arrears package 1 dim',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          chargeFilter: {
            values: {
              region: ['france'],
            },
          },
          id: '8845bd12-14ff-4101-8022-194b9af0c773',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears package 1 dim',
          itemName: 'Count BM - One dimension',
          metadata: {
            displayName: 'metered arrears package 1 dim • france',
            isFilterChildFee: true,
          },
          preciseUnitAmount: 0.333333333333333,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '100',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: '0.0',
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: '1.0',
            perPackageSize: 10,
            perPackageUnitAmount: '1.0',
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '9b75ac14-4287-4288-9b6c-169dc3a9c4b6',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
              name: 'Count BM - One dimension',
            },
            chargeModel: 'package',
            id: 'b21c33f9-e290-489f-a4b7-e2f86c5dfc77',
            invoiceDisplayName: 'metered arrears package 1 dim',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
            subscriptions: {},
          },
          description: null,
          feeType: 'charge',
          chargeFilter: {
            values: { region: ['italy'] },
          },
          id: '32206e16-eaa9-4a54-9d14-5f16c8df063a',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears package 1 dim',
          itemName: 'Count BM - One dimension',
          metadata: {
            displayName: 'metered arrears package 1 dim • italy',
            isFilterChildFee: true,
          },
          preciseUnitAmount: 1,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '605',
          amountDetails: {
            fixedFeeTotalAmount: '5.0',
            fixedFeeUnitAmount: '1.0',
            flatUnitAmount: null,
            freeEvents: 1,
            freeUnits: '1.0',
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: '1.0',
            paidEvents: 5,
            paidUnits: '5.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.05',
            rate: '1.0',
            units: '6.0',
          },
          appliedTaxes: [
            {
              id: '5041eb21-813f-41e3-b4bf-a1ec25cb8e0c',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
            },
            chargeModel: 'percentage',
            id: '4d98f89d-236a-4c4c-8b9d-7cd45a24430b',
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          chargeFilter: {
            values: { provider: ['AWS'], region: ['europe'] },
          },
          id: '30eec11f-d336-44f1-b114-f6c7f51d92c9',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          metadata: {
            displayName: 'metered arrears percentage 2 dim • AWS • europe',
            isFilterChildFee: true,
          },
          preciseUnitAmount: 1.008333333333333,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '12',
          amountDetails: {
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            flatUnitAmount: null,
            freeEvents: 0,
            freeUnits: '0.0',
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 6,
            paidUnits: '6.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.12',
            rate: '2.0',
            units: '6.0',
          },
          appliedTaxes: [
            {
              id: '6ea398d9-0695-4a5c-b891-b7ba5245af88',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
            },
            chargeModel: 'percentage',
            id: '4d98f89d-236a-4c4c-8b9d-7cd45a24430b',
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          chargeFilter: {
            values: { provider: ['AWS'], region: ['usa'] },
          },
          id: 'a088af7b-caa7-463c-b102-e770e618afcd',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          metadata: {
            displayName: 'metered arrears percentage 2 dim • AWS • usa',
            isFilterChildFee: true,
          },
          preciseUnitAmount: 0.02,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '9',
          amountDetails: {
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            flatUnitAmount: null,
            freeEvents: 2,
            freeUnits: '3.0',
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 4,
            paidUnits: '3.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.09',
            rate: '3.0',
            units: '6.0',
          },
          appliedTaxes: [
            {
              id: '38e712da-8b36-48ca-83bf-d29a4f5f64c7',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
            },
            chargeModel: 'percentage',
            id: '4d98f89d-236a-4c4c-8b9d-7cd45a24430b',
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          chargeFilter: {
            invoiceDisplayName: 'GOOOOOOOO USA!',
            values: { provider: ['Google'], region: ['usa'] },
          },
          id: '9acd0bf9-193e-45fa-953f-ef3df74f7488',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          metadata: {
            displayName: 'metered arrears percentage 2 dim • GOOOOOOOO USA!',
            isFilterChildFee: true,
          },
          preciseUnitAmount: 0.015,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '600',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'e92dc699-c0e6-4705-9496-9e16738dbf2e',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'standard',
            id: '73f02087-9204-41e3-8b1d-30de231c200e',
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            minAmountCents: '1100000',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: '5f604cdd-d096-482c-b997-6907bf0c16ab',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears percentage minimum spending',
            isNormalFee: true,
          },
          preciseUnitAmount: 1,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: {
            id: '231775c5-c7a5-4784-b728-c79c89196f7c',
          },
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '318754',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '6f4c8c90-a622-46b1-924e-36a7dc698fdb',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'standard',
            id: '73f02087-9204-41e3-8b1d-30de231c200e',
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            minAmountCents: '1100000',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: '231775c5-c7a5-4784-b728-c79c89196f7c',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears percentage minimum spending - True-up',
            isTrueUpFee: true,
          },
          preciseUnitAmount: 3187.54,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: {
            id: '5f604cdd-d096-482c-b997-6907bf0c16ab',
          },
          units: 1,
        },
        {
          amountCents: '600',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '130b2f46-480e-46f0-be8c-2f29621a7e62',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'sum_agg',
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
            },
            chargeModel: 'standard',
            id: '686e24ba-7eb5-4256-92bf-7d0a11d53968',
            invoiceDisplayName: 'metered arrears standard',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: '06e0b486-d694-475a-b6a7-8d1554f4d12e',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears standard',
          itemName: 'Sum BM',
          metadata: {
            displayName: 'metered arrears standard',
            isNormalFee: true,
          },
          preciseUnitAmount: 1,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '700',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: '1.0',
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: '1.0',
            perUnitTotalAmount: '6.0',
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '27a3dac2-0ee6-48c6-8261-7f39286f8de6',
              taxRate: 0,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'volume',
            id: '2d7e977b-75a0-49dc-8ba6-33d1f3588b1f',
            invoiceDisplayName: 'metered arrears volume',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: '66dbd1ea-bf62-470c-9af2-8094f55b6ce2',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears volume',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears volume',
            isNormalFee: true,
          },
          preciseUnitAmount: 1.166666666666667,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
        {
          amountCents: '1000',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '4b5aff80-1cd1-48a8-bb7d-28adcbd75a97',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '34398e7c-eecb-4e63-8aa5-d7a0211b974b',
            invoiceDisplayName: '',
            minAmountCents: '9999900',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: 'd475af54-e604-4ff8-ac51-b6597d4ff5bc',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count',
            isNormalFee: true,
          },
          preciseUnitAmount: 10,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: {
            id: '57109269-6eea-4edc-9dc4-8c97f09a4392',
          },
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '2902196',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '068c65bc-37b7-4665-ae14-98f8c55e2bc3',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '34398e7c-eecb-4e63-8aa5-d7a0211b974b',
            invoiceDisplayName: '',
            minAmountCents: '9999900',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: '57109269-6eea-4edc-9dc4-8c97f09a4392',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count - True-up',
            isTrueUpFee: true,
          },
          preciseUnitAmount: 29021.96,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: {
            id: 'd475af54-e604-4ff8-ac51-b6597d4ff5bc',
          },
          units: 1,
        },
      ],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const twoSubscriptions = [
  {
    fromDatetime: '2024-01-01T00:00:00Z',
    toDatetime: '2024-01-09T13:01:38Z',
    chargesFromDatetime: '2024-01-01T00:00:00Z',
    chargesToDatetime: '2024-01-09T13:01:38Z',
    inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
    inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
    subscription: {
      id: '59514df0-1abe-47dd-be36-445c9279240e',
      name: '',
      plan: {
        id: 'da8abf9d-022f-482c-a949-466c0131e080',
        name: 'maxi plan',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: 'f8f77c9c-ed1a-46e8-a3ef-d65a6a1db953',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '206',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated percentage',
        itemName: 'Count BM',
        units: 6,
        preciseUnitAmount: 0.343333333333333,
        appliedTaxes: [
          {
            id: 'f2b5077a-91c2-4dc2-b1e2-08660c4b9c20',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '1fb14cde-845a-4c1c-8729-6b8d8850aa9b',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated percentage',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated_percentage',
          minAmountCents: '0',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: [
            {
              flatUnitAmount: '1.0',
              fromValue: 0,
              perUnitTotalAmount: '0.01',
              rate: '1.0',
              toValue: 1,
              totalWithFlatAmount: '1.01',
              units: '1.0',
            },
            {
              flatUnitAmount: '1.0',
              fromValue: 2,
              perUnitTotalAmount: '0.05',
              rate: '1.0',
              toValue: null,
              totalWithFlatAmount: '1.05',
              units: '5.0',
            },
          ],
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
  {
    fromDatetime: '2024-01-01T00:00:00Z',
    toDatetime: '2024-01-09T13:01:38Z',
    chargesFromDatetime: '2024-01-01T00:00:00Z',
    chargesToDatetime: '2024-01-09T13:01:38Z',
    inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
    inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
    subscription: {
      id: '59514df0-1abe-47dd-be36-445c9279240e2',
      name: '',
      plan: {
        id: 'da8abf9d-022f-482c-a949-466c0131e080',
        name: 'maxi plan',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: 'f8f77c9c-ed1a-46e8-a3ef-d65a6a1db953',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e2',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '206',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated percentage',
        itemName: 'Count BM',
        units: 6,
        preciseUnitAmount: 0.343333333333333,
        appliedTaxes: [
          {
            id: 'f2b5077a-91c2-4dc2-b1e2-08660c4b9c20',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '1fb14cde-845a-4c1c-8729-6b8d8850aa9b',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated percentage',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated_percentage',
          minAmountCents: '0',
          prorated: false,
        },
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: [
            {
              flatUnitAmount: '1.0',
              fromValue: 0,
              perUnitTotalAmount: '0.01',
              rate: '1.0',
              toValue: 1,
              totalWithFlatAmount: '1.01',
              units: '1.0',
            },
            {
              flatUnitAmount: '1.0',
              fromValue: 2,
              perUnitTotalAmount: '0.05',
              rate: '1.0',
              toValue: null,
              totalWithFlatAmount: '1.05',
              units: '5.0',
            },
          ],
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
]

export const twoSubscriptionsResult = {
  metadata: {
    hasAnyFeeParsed: true,
    hasAnyPositiveFeeParsed: true,
  },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInAdvance: [],
      feesInArrearsZero: [],
      feesInArrears: [
        {
          amountCents: '206',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: [
              {
                flatUnitAmount: '1.0',
                fromValue: 0,
                perUnitTotalAmount: '0.01',
                rate: '1.0',
                toValue: 1,
                totalWithFlatAmount: '1.01',
                units: '1.0',
              },
              {
                flatUnitAmount: '1.0',
                fromValue: 2,
                perUnitTotalAmount: '0.05',
                rate: '1.0',
                toValue: null,
                totalWithFlatAmount: '1.05',
                units: '5.0',
              },
            ],
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'f2b5077a-91c2-4dc2-b1e2-08660c4b9c20',
              taxRate: 0,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'graduated_percentage',
            id: '1fb14cde-845a-4c1c-8729-6b8d8850aa9b',
            invoiceDisplayName: 'metered arrears graduated percentage',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: 'f8f77c9c-ed1a-46e8-a3ef-d65a6a1db953',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated percentage',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears graduated percentage',
            isNormalFee: true,
          },
          preciseUnitAmount: 0.343333333333333,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
      ],
      feesInAdvanceZero: [],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
    '59514df0-1abe-47dd-be36-445c9279240e2': {
      feesInAdvance: [],
      feesInAdvanceZero: [],
      feesInArrears: [
        {
          amountCents: '206',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: [
              {
                flatUnitAmount: '1.0',
                fromValue: 0,
                perUnitTotalAmount: '0.01',
                rate: '1.0',
                toValue: 1,
                totalWithFlatAmount: '1.01',
                units: '1.0',
              },
              {
                flatUnitAmount: '1.0',
                fromValue: 2,
                perUnitTotalAmount: '0.05',
                rate: '1.0',
                toValue: null,
                totalWithFlatAmount: '1.05',
                units: '5.0',
              },
            ],
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'f2b5077a-91c2-4dc2-b1e2-08660c4b9c20',
              taxRate: 0,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'graduated_percentage',
            id: '1fb14cde-845a-4c1c-8729-6b8d8850aa9b',
            invoiceDisplayName: 'metered arrears graduated percentage',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          feeType: 'charge',
          id: 'f8f77c9c-ed1a-46e8-a3ef-d65a6a1db953',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated percentage',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears graduated percentage',
            isNormalFee: true,
          },
          preciseUnitAmount: 0.343333333333333,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e2',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 6,
        },
      ],
      feesInArrearsZero: [],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const noFees = [
  {
    fromDatetime: '2024-01-01T00:00:00Z',
    toDatetime: '2024-01-09T13:01:38Z',
    chargesFromDatetime: '2024-01-01T00:00:00Z',
    chargesToDatetime: '2024-01-09T13:01:38Z',
    inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
    inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
    invoice: {
      id: '1234',
    },
    subscription: {
      id: '59514df0-1abe-47dd-be36-445c9279240e',
      name: '',
      plan: {
        id: 'da8abf9d-022f-482c-a949-466c0131e080',
        name: 'maxi plan',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [],
  },
]

export const noFeesResult = {
  metadata: { hasAnyFeeParsed: false, hasAnyPositiveFeeParsed: false },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInArrears: [],
      feesInArrearsZero: [],
      feesInAdvance: [],
      feesInAdvanceZero: [],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        invoiceId: '1234',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const newNoFeesResult = {
  metadata: { hasAnyFeeParsed: false, hasAnyPositiveFeeParsed: false },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInArrears: [],
      feesInArrearsZero: [],
      feesInAdvance: [],
      feesInAdvanceZero: [],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        invoiceId: '1234',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const chargeZeroAmountResult = {
  metadata: { hasAnyFeeParsed: true, hasAnyPositiveFeeParsed: true },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInArrears: [
        {
          amountCents: '0',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '19f72015-a550-41cf-8839-126538807aef',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          feeType: 'subscription',
          id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan',
          metadata: {
            displayName: 'Monthly subscription fee - maxi plan',
            isSubscriptionFee: true,
          },
          preciseUnitAmount: 0,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 0,
        },
      ],
      feesInArrearsZero: [],
      feesInAdvance: [],
      feesInAdvanceZero: [],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        invoiceId: '1234',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const subZeroAmount = [
  {
    fromDatetime: '2024-01-01T00:00:00Z',
    toDatetime: '2024-01-09T13:01:38Z',
    chargesFromDatetime: '2024-01-01T00:00:00Z',
    chargesToDatetime: '2024-01-09T13:01:38Z',
    inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
    inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
    subscription: {
      id: '59514df0-1abe-47dd-be36-445c9279240e',
      name: '',
      plan: {
        id: 'da8abf9d-022f-482c-a949-466c0131e080',
        name: 'maxi plan',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'subscription',
        invoiceDisplayName: null,
        invoiceName: 'sub fee',
        itemName: 'maxi plan',
        units: 1,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '19f72015-a550-41cf-8839-126538807aef',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: null,
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
]

export const subZeroAmountResult = {
  metadata: {
    hasAnyFeeParsed: true,
    hasAnyPositiveFeeParsed: true,
  },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInAdvance: [],
      feesInAdvanceZero: [],
      feesInArrears: [
        {
          amountCents: '0',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '19f72015-a550-41cf-8839-126538807aef',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          feeType: 'subscription',
          id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan',
          metadata: {
            displayName: 'Monthly subscription fee - maxi plan',
            isSubscriptionFee: true,
          },
          preciseUnitAmount: 0,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
      ],
      feesInArrearsZero: [],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const chargeZeroAmount = [
  {
    fromDatetime: '2024-01-01T00:00:00Z',
    toDatetime: '2024-01-09T13:01:38Z',
    chargesFromDatetime: '2024-01-01T00:00:00Z',
    chargesToDatetime: '2024-01-09T13:01:38Z',
    differentBoundariesForSubscriptionAndCharges: false,
    inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
    inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
    invoice: {
      id: '1234',
    },
    subscription: {
      id: '59514df0-1abe-47dd-be36-445c9279240e',
      name: '',
      plan: {
        id: 'da8abf9d-022f-482c-a949-466c0131e080',
        name: 'maxi plan',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'subscription',
        invoiceDisplayName: null,
        invoiceName: 'sub fee',
        itemName: 'maxi plan',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '19f72015-a550-41cf-8839-126538807aef',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: null,
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
]

export const chargeZeroAmountDraftInvoice = [
  {
    fromDatetime: '2024-01-01T00:00:00Z',
    toDatetime: '2024-01-09T13:01:38Z',
    chargesFromDatetime: '2024-01-01T00:00:00Z',
    chargesToDatetime: '2024-01-09T13:01:38Z',
    differentBoundariesForSubscriptionAndCharges: false,
    inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
    inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
    invoice: {
      id: '1234',
      status: 'draft',
    },
    subscription: {
      id: '59514df0-1abe-47dd-be36-445c9279240e',
      name: '',
      plan: {
        id: 'da8abf9d-022f-482c-a949-466c0131e080',
        name: 'maxi plan',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'subscription',
        invoiceDisplayName: null,
        invoiceName: 'sub fee',
        itemName: 'maxi plan',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '19f72015-a550-41cf-8839-126538807aef',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: null,
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '069a3be4-73bf-4d18-bfce-d6c74185',
        subscription: {
          id: '59514df0-1abe-47dd-be36-445c9279240e',
          name: '',
          plan: {
            id: 'da8abf9d-022f-482c-a949-466c0131e080',
            name: 'maxi plan',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'sub fee',
        itemName: 'maxi plan',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '19f72015-a550-41cf-8839-126538807aef',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: null,
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
]

export const chargeZeroAmountDraftInvoiceResult = {
  metadata: { hasAnyFeeParsed: true, hasAnyPositiveFeeParsed: false },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInAdvance: [],
      feesInAdvanceZero: [],
      feesInArrears: [],
      feesInArrearsZero: [
        {
          amountCents: '0',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '19f72015-a550-41cf-8839-126538807aef',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          feeType: 'subscription',
          id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan',
          metadata: {
            displayName: 'Monthly subscription fee - maxi plan',
            isSubscriptionFee: true,
          },
          preciseUnitAmount: 0,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 0,
        },
        {
          amountCents: '0',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '19f72015-a550-41cf-8839-126538807aef',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          feeType: 'charge',
          id: '069a3be4-73bf-4d18-bfce-d6c74185',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan',
          metadata: {
            displayName: 'sub fee',
            isNormalFee: true,
          },
          preciseUnitAmount: 0,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 0,
        },
      ],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        invoiceId: '1234',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const newChargeZeroAmountDraftInvoiceResult = {
  metadata: { hasAnyFeeParsed: true, hasAnyPositiveFeeParsed: true },
  subscriptions: {
    '59514df0-1abe-47dd-be36-445c9279240e': {
      feesInAdvance: [],
      feesInAdvanceZero: [],
      feesInArrearsZero: [],
      feesInArrears: [
        {
          amountCents: '0',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '19f72015-a550-41cf-8839-126538807aef',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          feeType: 'subscription',
          id: '069a3be4-73bf-4d18-bfce-d6c74185d491',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan',
          metadata: {
            displayName: 'Monthly subscription fee - maxi plan',
            isSubscriptionFee: true,
          },
          preciseUnitAmount: 0,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 0,
        },
        {
          amountCents: '0',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '19f72015-a550-41cf-8839-126538807aef',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          feeType: 'charge',
          id: '069a3be4-73bf-4d18-bfce-d6c74185',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan',
          metadata: {
            displayName: 'sub fee',
            isNormalFee: true,
          },
          preciseUnitAmount: 0,
          subscription: {
            id: '59514df0-1abe-47dd-be36-445c9279240e',
            name: '',
            plan: {
              id: 'da8abf9d-022f-482c-a949-466c0131e080',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 0,
        },
      ],
      metadata: {
        chargesFromDatetime: '2024-01-01T00:00:00Z',
        chargesToDatetime: '2024-01-09T13:01:38Z',
        differentBoundariesForSubscriptionAndCharges: false,
        fromDatetime: '2024-01-01T00:00:00Z',
        inAdvanceChargesFromDatetime: '2024-01-01T00:00:00+00:00',
        inAdvanceChargesToDatetime: '2024-01-09T00:00:00+00:00',
        invoiceId: '1234',
        subscriptionDisplayName: 'maxi plan',
        toDatetime: '2024-01-09T13:01:38Z',
      },
    },
  },
}

export const unorderedSubscriptionWithFees = [
  {
    fromDatetime: '2024-03-01T00:00:00Z',
    toDatetime: '2024-03-31T23:59:59Z',
    chargesFromDatetime: '2024-02-01T00:00:00Z',
    chargesToDatetime: '2024-02-29T23:59:59Z',
    inAdvanceChargesFromDatetime: null,
    inAdvanceChargesToDatetime: null,
    invoice: {
      id: '1234',
    },
    subscription: {
      id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
      name: '',
      plan: {
        id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
        name: 'maxi plan sub arrears',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: '077afb3e-b1b5-45e7-9151-afd608b89766',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated percentage',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '63a6de02-1794-4fc4-8b5a-ae7683155d5a',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '6e40b8bf-b9f3-447f-9bd3-14e6b3be3cd0',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated percentage',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated_percentage',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: [
            {
              flatUnitAmount: '0.0',
              fromValue: 0,
              perUnitTotalAmount: '0.0',
              rate: '1.0',
              toValue: 1,
              totalWithFlatAmount: '0.0',
              units: '0.0',
            },
          ],
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '9eab70e0-c840-4fc3-aad0-0d445241ba88',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears volume',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '8877b6f0-24d7-422d-aadf-e08f8a33d7c2',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '06b2b65b-b1a7-4e43-82fc-dc5ed9738b3c',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears volume',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'volume',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: '0.0',
          perUnitAmount: '0.0',
          perUnitTotalAmount: '0.0',
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '817ea1cc-f47b-4b48-806f-6a0ce03747a1',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '10000',
        description: null,
        feeType: 'subscription',
        invoiceDisplayName: null,
        invoiceName: 'sub fee',
        itemName: 'maxi plan sub arrears',
        units: 1,
        preciseUnitAmount: 100,
        appliedTaxes: [
          {
            id: '03241fa4-63d6-4dfe-b038-8e6c7ba27e99',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: null,
        eventsCount: null,
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'd354a597-5bf4-4a3c-89c3-6ce16ec7406d',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated',
        itemName: 'Sum BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '1f2b9996-c3e4-4946-ba5d-471a8d7c90f0',
            taxRate: 25,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '05df220f-85dd-41a2-a0c3-dc5cc0eef533',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: [
            {
              flatUnitAmount: '0.0',
              fromValue: 0,
              perUnitAmount: '0.0',
              perUnitTotalAmount: '0.0',
              toValue: 1,
              totalWithFlatAmount: '0.0',
              units: '0.0',
            },
          ],
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '27d61806-c220-42dd-befd-a90c4f652ff4',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears package 1 dim',
        itemName: 'Count BM - One dimension',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '87af0e98-1ba3-470b-986c-d85a0d959129',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears package 1 dim',
          billableMetric: {
            id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
            name: 'Count BM - One dimension',
            aggregationType: 'count_agg',
          },
          chargeModel: 'package',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: {
            region: ['france'],
          },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: 0,
          perPackageUnitAmount: '0.0',
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'ed477cf0-5459-43f7-9cd3-f5262519a26d',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears package 1 dim',
        itemName: 'Count BM - One dimension',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '4e16e526-27d8-422f-aa33-035ed2d396bd',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears package 1 dim',
          billableMetric: {
            id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
            name: 'Count BM - One dimension',
            aggregationType: 'count_agg',
          },
          chargeModel: 'package',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { region: ['italy'] },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: 0,
          perPackageUnitAmount: '0.0',
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '98f1c632-ff4d-4e4e-86a0-28748321a662',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'f8612c1d-ffd1-4876-8471-381b0b84d143',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '25b455e4-1333-4c76-afc3-7398e5d58892',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { provider: ['AWS'], region: ['europe'] },
        },

        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '1.0',
          units: '0.0',
        },
      },
      {
        id: 'cb1bf837-e4f7-4112-b532-eacc2b36317e',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'd606c4a1-ac30-482e-89fb-b6a2ee7c2d57',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '25b455e4-1333-4c76-afc3-7398e5d58892',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { provider: ['AWS'], region: ['usa'] },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '2.0',
          units: '0.0',
        },
      },
      {
        id: '8e699c82-e254-4197-a8d6-5e9a5170d778',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '57b53d82-91bf-4a53-94bf-e4c9714a52e7',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '25b455e4-1333-4c76-afc3-7398e5d58892',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          invoiceDisplayName: 'GOOOOOOOO USA!',
          values: { provider: ['Google'], region: ['usa'] },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '3.0',
          units: '0.0',
        },
      },
      {
        id: '82d7195a-1e42-4c86-930f-859a43b1693e',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears standard',
        itemName: 'Sum BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'b02f802a-bc06-4738-9573-553fbc4653d5',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '8c17937b-d5b5-42ab-bb6e-6b89651564db',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears standard',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '061e4abe-9e92-4477-b5fb-987304f16735',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage minimum spending',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '219b207a-ff39-4284-922f-0009deef66ca',
            taxRate: 20,
          },
        ],
        trueUpFee: {
          id: '72dbfa60-2cf4-43d7-9884-8107ada8d60a',
        },
        trueUpParentFee: null,
        charge: {
          id: '34e6b422-b03e-4512-9778-93c1ad465c21',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage minimum spending',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '1100000',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '72dbfa60-2cf4-43d7-9884-8107ada8d60a',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '1100000',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage minimum spending',
        itemName: 'Count BM',
        units: 1,
        preciseUnitAmount: 11000,
        appliedTaxes: [
          {
            id: 'cebee521-58f7-4dfd-919e-cd51e3ccd8fc',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: {
          id: '061e4abe-9e92-4477-b5fb-987304f16735',
        },
        charge: {
          id: '34e6b422-b03e-4512-9778-93c1ad465c21',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage minimum spending',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '1100000',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'f9aeb27c-4261-495b-86cb-c4ebea335ca5',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '1000',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 10,
        appliedTaxes: [
          {
            id: 'e3e9793f-0f4c-4e6a-ae92-1f0f24658f38',
            taxRate: 20,
          },
        ],
        trueUpFee: {
          id: 'cff1026b-baec-4fe2-a725-99532769865a',
        },
        trueUpParentFee: null,
        charge: {
          id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '9999900',
          prorated: false,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'cff1026b-baec-4fe2-a725-99532769865a',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '9998900',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 99989,
        appliedTaxes: [
          {
            id: 'baddf7d2-f84c-4424-a970-d0e9075eb0b3',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: {
          id: 'f9aeb27c-4261-495b-86cb-c4ebea335ca5',
        },
        charge: {
          id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '9999900',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'a54a6f27-ac59-45b7-bc0d-4a42415c1e47',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '66700',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count prorated advance',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 667,
        appliedTaxes: [
          {
            id: 'ea35ee38-2d5f-4453-8a87-ba7a92269837',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '054ca896-1e1c-4190-ad42-eed7c24b9270',
          payInAdvance: true,
          invoiceDisplayName: 'rec count prorated advance',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '0',
          prorated: true,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'cc0dc739-46f6-41a8-94f3-284d07d2c4c7',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'Count BM',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'a4358d5c-77e0-4173-9b12-342763a72a03',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '34fd251e-7210-410d-ab87-91b77a6a075b',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: [
            {
              flatUnitAmount: '0.0',
              fromValue: 0,
              perUnitAmount: '0.0',
              perUnitTotalAmount: '0.0',
              toValue: 1,
              totalWithFlatAmount: '0.0',
              units: '0.0',
            },
          ],
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '1d19eec2-3ba6-49bc-8767-66f8e4b8b83a',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '200',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count prorated graduated',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 2,
        appliedTaxes: [
          {
            id: '1c1b3281-73e7-4113-a3de-650f462b0157',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: 'bc29cfb6-998f-422d-858f-6107dd905530',
          payInAdvance: false,
          invoiceDisplayName: 'rec count prorated graduated',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: true,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '2398dd5c-6558-45df-b97c-3e913f79c3ea',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '200',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count prorated volume',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 2,
        appliedTaxes: [
          {
            id: '83e835ea-ae89-4a1e-aa49-3d48286262d9',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '5575dc4f-f78c-4491-8ef0-9c778f1b4435',
          payInAdvance: false,
          invoiceDisplayName: 'rec count prorated volume',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'volume',
          minAmountCents: '0',
          prorated: true,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: '1.0',
          perUnitAmount: '1.0',
          perUnitTotalAmount: '1.0',
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '7b1557a9-5b94-4d2a-b453-a1f749fc27e3',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'Sum BM',
        itemName: 'Sum BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '4effc63f-c169-4ede-8dc7-6e9e23154dc3',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '422e93d6-1c10-4339-b327-2a3ca61581f5',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '11.0',
          units: '0.0',
        },
      },
      {
        id: '9032acd1-a5c4-4c80-b500-94700d997d32',
        subscription: {
          id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '9999900',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'Advance recurring',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 99999,
        appliedTaxes: [
          {
            id: '7375835a-359d-4740-b8f7-a4d8c823ccb7',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '0fc08fb5-7cc1-43bd-a7d2-d3fac8835d0c',
          payInAdvance: true,
          invoiceDisplayName: 'Advance recurring',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
  {
    fromDatetime: '2024-03-11T00:00:00Z',
    toDatetime: '2024-04-10T23:59:59Z',
    chargesFromDatetime: '2024-02-11T00:00:00Z',
    chargesToDatetime: '2024-03-10T23:59:59Z',
    inAdvanceChargesFromDatetime: null,
    inAdvanceChargesToDatetime: null,
    invoice: {
      id: '1234',
    },
    subscription: {
      id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
      name: '',
      plan: {
        id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
        name: 'maxi plan sub arrears',
        interval: 'monthly',
        amountCents: '10000',
        amountCurrency: 'EUR',
        invoiceDisplayName: 'sub fee',
      },
    },
    fees: [
      {
        id: '626e9246-f986-4aa1-b586-3501f5b50dbc',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '10000',
        description: null,
        feeType: 'subscription',
        invoiceDisplayName: null,
        invoiceName: 'sub fee',
        itemName: 'maxi plan sub arrears',
        units: 1,
        preciseUnitAmount: 100,
        appliedTaxes: [
          {
            id: 'de9197a3-4919-40ca-85cf-4db578fd1961',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: null,
        eventsCount: null,
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'cf0be687-7268-4466-ba0e-3fc147ad584a',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated percentage',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'e5d5a002-578c-4bfb-85f8-3e8ea813fbb5',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '6e40b8bf-b9f3-447f-9bd3-14e6b3be3cd0',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated percentage',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated_percentage',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: [
            {
              flatUnitAmount: '0.0',
              fromValue: 0,
              perUnitTotalAmount: '0.0',
              rate: '1.0',
              toValue: 1,
              totalWithFlatAmount: '0.0',
              units: '0.0',
            },
          ],
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '0a531d59-12d6-4804-a656-08cdd280b5df',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears package 1 dim',
        itemName: 'Count BM - One dimension',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '208270ae-38e5-4e41-a0f1-cd06a89271bd',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears package 1 dim',
          billableMetric: {
            id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
            name: 'Count BM - One dimension',
            aggregationType: 'count_agg',
          },
          chargeModel: 'package',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: {
            region: ['france'],
          },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: 0,
          perPackageUnitAmount: '0.0',
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '9cd55b8d-380d-425c-a35d-8afd0f971b7b',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears volume',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'afd99c92-ae12-44af-97bb-07fae721af40',
            taxRate: 0,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '06b2b65b-b1a7-4e43-82fc-dc5ed9738b3c',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears volume',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'volume',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: '0.0',
          perUnitAmount: '0.0',
          perUnitTotalAmount: '0.0',
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'f1d47378-4850-419c-a296-b31f727a2da5',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears graduated',
        itemName: 'Sum BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '2ec49341-adb2-4815-9f5c-ab82947060e9',
            taxRate: 25,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '05df220f-85dd-41a2-a0c3-dc5cc0eef533',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears graduated',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: [
            {
              flatUnitAmount: '0.0',
              fromValue: 0,
              perUnitAmount: '0.0',
              perUnitTotalAmount: '0.0',
              toValue: 1,
              totalWithFlatAmount: '0.0',
              units: '0.0',
            },
          ],
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'a06ae8ab-d600-4745-ba0e-fa600496241f',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears package 1 dim',
        itemName: 'Count BM - One dimension',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '76c3feef-b010-4215-8730-5ffaeba16568',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears package 1 dim',
          billableMetric: {
            id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
            name: 'Count BM - One dimension',
            aggregationType: 'count_agg',
          },
          chargeModel: 'package',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { region: ['italy'] },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: 0,
          perPackageUnitAmount: '0.0',
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '3b34a414-1c11-412a-848a-a4e6df9a9226',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'adcda98c-48ac-4a5a-b921-886a399b1935',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '25b455e4-1333-4c76-afc3-7398e5d58892',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { provider: ['AWS'], region: ['europe'] },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '1.0',
          units: '0.0',
        },
      },
      {
        id: 'ff612e87-40f9-4a24-a533-21778d3ada20',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '1315f59e-0a8f-45ec-831c-dc528f0e0d0b',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '25b455e4-1333-4c76-afc3-7398e5d58892',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          values: { provider: ['AWS'], region: ['usa'] },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '2.0',
          units: '0.0',
        },
      },
      {
        id: '9b96d481-e2b8-4eff-aa1d-1fd2190aad88',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage 2 dim',
        itemName: 'Count BM - Two dimensions',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '6b2c58c1-87a7-405f-8402-59b163a41d10',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '25b455e4-1333-4c76-afc3-7398e5d58892',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage 2 dim',
          billableMetric: {
            id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
            name: 'Count BM - Two dimensions',
            aggregationType: 'count_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        chargeFilter: {
          invoiceDisplayName: 'GOOOOOOOO USA!',
          values: { provider: ['Google'], region: ['usa'] },
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '3.0',
          units: '0.0',
        },
      },
      {
        id: '9208414b-4ec3-46c8-9930-bb10a7086d8e',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears standard',
        itemName: 'Sum BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'e3fe0ef6-9ce1-4fbe-9e29-62bccd244b16',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '8c17937b-d5b5-42ab-bb6e-6b89651564db',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears standard',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '1acab4b6-1f30-450f-b87a-02dbf2ce31ec',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage minimum spending',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '21cc7b6a-84e1-47a8-8450-507bfc403611',
            taxRate: 20,
          },
        ],
        trueUpFee: {
          id: '599299c4-7519-44f6-9a48-26814677e2e0',
        },
        trueUpParentFee: null,
        charge: {
          id: '34e6b422-b03e-4512-9778-93c1ad465c21',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage minimum spending',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '1100000',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '599299c4-7519-44f6-9a48-26814677e2e0',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '1100000',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'metered arrears percentage minimum spending',
        itemName: 'Count BM',
        units: 1,
        preciseUnitAmount: 11000,
        appliedTaxes: [
          {
            id: 'ee18bd57-db30-4ea9-9640-24b1ca7ffd9a',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: {
          id: '1acab4b6-1f30-450f-b87a-02dbf2ce31ec',
        },
        charge: {
          id: '34e6b422-b03e-4512-9778-93c1ad465c21',
          payInAdvance: false,
          invoiceDisplayName: 'metered arrears percentage minimum spending',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '1100000',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'cc82649b-37b5-4be2-9068-43665288a1d4',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '1000',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 10,
        appliedTaxes: [
          {
            id: 'ee77a4ee-4013-4d74-8830-8cb2fb68fabb',
            taxRate: 20,
          },
        ],
        trueUpFee: {
          id: '161c7a55-a56e-4f38-8009-ae6a3bd29edc',
        },
        trueUpParentFee: null,
        charge: {
          id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '9999900',
          prorated: false,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '161c7a55-a56e-4f38-8009-ae6a3bd29edc',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '9998900',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 99989,
        appliedTaxes: [
          {
            id: '8d47e1e3-8f75-446d-8c14-f8ba3b58c095',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: {
          id: 'cc82649b-37b5-4be2-9068-43665288a1d4',
        },
        charge: {
          id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '9999900',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '86ee400c-a0c5-4e7b-a6c4-0915a7296fcd',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '66700',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count prorated advance',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 667,
        appliedTaxes: [
          {
            id: 'ec8d1e3c-6cee-40f4-8e4a-70850ceecded',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '054ca896-1e1c-4190-ad42-eed7c24b9270',
          payInAdvance: true,
          invoiceDisplayName: 'rec count prorated advance',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '0',
          prorated: true,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'c3b7bb85-cdde-4511-8e91-76491fcb51b8',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'Count BM',
        itemName: 'Count BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: '4318e992-6cd8-4030-8209-ecaa131a50e9',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '34fd251e-7210-410d-ab87-91b77a6a075b',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
            name: 'Count BM',
            aggregationType: 'count_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: [
            {
              flatUnitAmount: '0.0',
              fromValue: 0,
              perUnitAmount: '0.0',
              perUnitTotalAmount: '0.0',
              toValue: 1,
              totalWithFlatAmount: '0.0',
              units: '0.0',
            },
          ],
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: 'c94363c5-6f45-490e-8b9f-7c4c41cd725e',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '200',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count prorated graduated',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 2,
        appliedTaxes: [
          {
            id: 'a0c2fc7c-c091-465a-8133-83c292557770',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: 'bc29cfb6-998f-422d-858f-6107dd905530',
          payInAdvance: false,
          invoiceDisplayName: 'rec count prorated graduated',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'graduated',
          minAmountCents: '0',
          prorated: true,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '609a8c7a-756d-4468-a70b-a270183b22b7',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '200',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'rec count prorated volume',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 2,
        appliedTaxes: [
          {
            id: '52a03e29-7a8c-445d-a143-579f38a84bf3',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '5575dc4f-f78c-4491-8ef0-9c778f1b4435',
          payInAdvance: false,
          invoiceDisplayName: 'rec count prorated volume',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'volume',
          minAmountCents: '0',
          prorated: true,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: '1.0',
          perUnitAmount: '1.0',
          perUnitTotalAmount: '1.0',
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
      {
        id: '5e6acf8d-c7af-4c52-94ae-ad2784a25ad0',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '0',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'Sum BM',
        itemName: 'Sum BM',
        units: 0,
        preciseUnitAmount: 0,
        appliedTaxes: [
          {
            id: 'de7d66ad-b9ca-464f-92da-ba2d4dba0609',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '422e93d6-1c10-4339-b327-2a3ca61581f5',
          payInAdvance: false,
          invoiceDisplayName: '',
          billableMetric: {
            id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
            name: 'Sum BM',
            aggregationType: 'sum_agg',
          },
          chargeModel: 'percentage',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '0',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: '0.0',
          freeUnits: '0.0',
          paidUnits: '0.0',
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: '0.0',
          fixedFeeUnitAmount: '0.0',
          freeEvents: 0,
          minMaxAdjustmentTotalAmount: '0.0',
          paidEvents: 0,
          rate: '11.0',
          units: '0.0',
        },
      },
      {
        id: 'c67735cf-65df-451c-a956-20009200155d',
        subscription: {
          id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
          name: '',
          plan: {
            id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
            name: 'maxi plan sub arrears',
            invoiceDisplayName: 'sub fee',
            interval: 'monthly',
          },
        },
        amountCents: '9999900',
        description: null,
        feeType: 'charge',
        invoiceDisplayName: null,
        invoiceName: 'Advance recurring',
        itemName: 'rec count',
        units: 1,
        preciseUnitAmount: 99999,
        appliedTaxes: [
          {
            id: '3d930b1c-e237-46e5-8c14-0b9d178a9f79',
            taxRate: 20,
          },
        ],
        trueUpFee: null,
        trueUpParentFee: null,
        charge: {
          id: '0fc08fb5-7cc1-43bd-a7d2-d3fac8835d0c',
          payInAdvance: true,
          invoiceDisplayName: 'Advance recurring',
          billableMetric: {
            id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
            name: 'rec count',
            aggregationType: 'unique_count_agg',
          },
          chargeModel: 'standard',
          minAmountCents: '0',
          prorated: false,
        },
        eventsCount: '1',
        amountDetails: {
          graduatedRanges: null,
          graduatedPercentageRanges: null,
          flatUnitAmount: null,
          perUnitAmount: null,
          perUnitTotalAmount: null,
          freeUnits: null,
          paidUnits: null,
          perPackageSize: null,
          perPackageUnitAmount: null,
          fixedFeeTotalAmount: null,
          fixedFeeUnitAmount: null,
          freeEvents: null,
          minMaxAdjustmentTotalAmount: null,
          paidEvents: null,
          rate: null,
          units: null,
        },
      },
    ],
  },
]
export const newOrderedSubscriptionWithFees = {
  metadata: { hasAnyFeeParsed: true, hasAnyPositiveFeeParsed: true },
  subscriptions: {
    '0b9e37a0-9589-49d0-9da1-e39887d89ac2': {
      feesInArrears: [
        {
          id: 'cc0dc739-46f6-41a8-94f3-284d07d2c4c7',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'Count BM',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'a4358d5c-77e0-4173-9b12-342763a72a03', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '34fd251e-7210-410d-ab87-91b77a6a075b',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'graduated',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: [
              {
                flatUnitAmount: '0.0',
                fromValue: 0,
                perUnitAmount: '0.0',
                perUnitTotalAmount: '0.0',
                toValue: 1,
                totalWithFlatAmount: '0.0',
                units: '0.0',
              },
            ],
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'Count BM' },
        },
        {
          id: 'd354a597-5bf4-4a3c-89c3-6ce16ec7406d',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated',
          itemName: 'Sum BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '1f2b9996-c3e4-4946-ba5d-471a8d7c90f0', taxRate: 25 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '05df220f-85dd-41a2-a0c3-dc5cc0eef533',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears graduated',
            billableMetric: {
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
              aggregationType: 'sum_agg',
            },
            chargeModel: 'graduated',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: [
              {
                flatUnitAmount: '0.0',
                fromValue: 0,
                perUnitAmount: '0.0',
                perUnitTotalAmount: '0.0',
                toValue: 1,
                totalWithFlatAmount: '0.0',
                units: '0.0',
              },
            ],
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears graduated' },
        },
        {
          id: '077afb3e-b1b5-45e7-9151-afd608b89766',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated percentage',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '63a6de02-1794-4fc4-8b5a-ae7683155d5a', taxRate: 0 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '6e40b8bf-b9f3-447f-9bd3-14e6b3be3cd0',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears graduated percentage',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'graduated_percentage',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: [
              {
                flatUnitAmount: '0.0',
                fromValue: 0,
                perUnitTotalAmount: '0.0',
                rate: '1.0',
                toValue: 1,
                totalWithFlatAmount: '0.0',
                units: '0.0',
              },
            ],
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears graduated percentage' },
        },
        {
          id: '27d61806-c220-42dd-befd-a90c4f652ff4',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears package 1 dim',
          itemName: 'Count BM - One dimension',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '87af0e98-1ba3-470b-986c-d85a0d959129', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears package 1 dim',
            billableMetric: {
              id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
              name: 'Count BM - One dimension',
              aggregationType: 'count_agg',
            },
            chargeModel: 'package',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { region: ['france'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: 0,
            perPackageUnitAmount: '0.0',
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears package 1 dim • france',
          },
        },
        {
          id: 'ed477cf0-5459-43f7-9cd3-f5262519a26d',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears package 1 dim',
          itemName: 'Count BM - One dimension',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '4e16e526-27d8-422f-aa33-035ed2d396bd', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears package 1 dim',
            billableMetric: {
              id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
              name: 'Count BM - One dimension',
              aggregationType: 'count_agg',
            },
            chargeModel: 'package',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { region: ['italy'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: 0,
            perPackageUnitAmount: '0.0',
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears package 1 dim • italy',
          },
        },
        {
          id: '98f1c632-ff4d-4e4e-86a0-28748321a662',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'f8612c1d-ffd1-4876-8471-381b0b84d143', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '25b455e4-1333-4c76-afc3-7398e5d58892',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            billableMetric: {
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
              aggregationType: 'count_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { provider: ['AWS'], region: ['europe'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '1.0',
            units: '0.0',
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears percentage 2 dim • AWS • europe',
          },
        },
        {
          id: 'cb1bf837-e4f7-4112-b532-eacc2b36317e',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'd606c4a1-ac30-482e-89fb-b6a2ee7c2d57', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '25b455e4-1333-4c76-afc3-7398e5d58892',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            billableMetric: {
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
              aggregationType: 'count_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { provider: ['AWS'], region: ['usa'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '2.0',
            units: '0.0',
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears percentage 2 dim • AWS • usa',
          },
        },
        {
          id: '8e699c82-e254-4197-a8d6-5e9a5170d778',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '57b53d82-91bf-4a53-94bf-e4c9714a52e7', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '25b455e4-1333-4c76-afc3-7398e5d58892',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            billableMetric: {
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
              aggregationType: 'count_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: {
            invoiceDisplayName: 'GOOOOOOOO USA!',
            values: { provider: ['Google'], region: ['usa'] },
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '3.0',
            units: '0.0',
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears percentage 2 dim • GOOOOOOOO USA!',
          },
        },
        {
          id: '061e4abe-9e92-4477-b5fb-987304f16735',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '219b207a-ff39-4284-922f-0009deef66ca', taxRate: 20 }],
          trueUpFee: { id: '72dbfa60-2cf4-43d7-9884-8107ada8d60a' },
          trueUpParentFee: null,
          charge: {
            id: '34e6b422-b03e-4512-9778-93c1ad465c21',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '1100000',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isNormalFee: true,
            displayName: 'metered arrears percentage minimum spending',
          },
        },
        {
          id: '72dbfa60-2cf4-43d7-9884-8107ada8d60a',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '1100000',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          units: 1,
          preciseUnitAmount: 11000,
          appliedTaxes: [{ id: 'cebee521-58f7-4dfd-919e-cd51e3ccd8fc', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: { id: '061e4abe-9e92-4477-b5fb-987304f16735' },
          charge: {
            id: '34e6b422-b03e-4512-9778-93c1ad465c21',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '1100000',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isTrueUpFee: true,
            displayName: 'metered arrears percentage minimum spending - True-up',
          },
        },
        {
          id: '82d7195a-1e42-4c86-930f-859a43b1693e',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears standard',
          itemName: 'Sum BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'b02f802a-bc06-4738-9573-553fbc4653d5', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '8c17937b-d5b5-42ab-bb6e-6b89651564db',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears standard',
            billableMetric: {
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
              aggregationType: 'sum_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears standard' },
        },
        {
          id: '9eab70e0-c840-4fc3-aad0-0d445241ba88',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears volume',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '8877b6f0-24d7-422d-aadf-e08f8a33d7c2', taxRate: 0 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '06b2b65b-b1a7-4e43-82fc-dc5ed9738b3c',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears volume',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'volume',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: '0.0',
            perUnitAmount: '0.0',
            perUnitTotalAmount: '0.0',
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears volume' },
        },
        {
          id: 'f9aeb27c-4261-495b-86cb-c4ebea335ca5',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '1000',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 10,
          appliedTaxes: [{ id: 'e3e9793f-0f4c-4e6a-ae92-1f0f24658f38', taxRate: 20 }],
          trueUpFee: { id: 'cff1026b-baec-4fe2-a725-99532769865a' },
          trueUpParentFee: null,
          charge: {
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '9999900',
            prorated: false,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count' },
        },
        {
          id: 'cff1026b-baec-4fe2-a725-99532769865a',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '9998900',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 99989,
          appliedTaxes: [{ id: 'baddf7d2-f84c-4424-a970-d0e9075eb0b3', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: { id: 'f9aeb27c-4261-495b-86cb-c4ebea335ca5' },
          charge: {
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '9999900',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isTrueUpFee: true, displayName: 'rec count - True-up' },
        },
        {
          id: '1d19eec2-3ba6-49bc-8767-66f8e4b8b83a',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '200',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated graduated',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 2,
          appliedTaxes: [{ id: '1c1b3281-73e7-4113-a3de-650f462b0157', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: 'bc29cfb6-998f-422d-858f-6107dd905530',
            payInAdvance: false,
            invoiceDisplayName: 'rec count prorated graduated',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'graduated',
            minAmountCents: '0',
            prorated: true,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count prorated graduated' },
        },
        {
          id: '2398dd5c-6558-45df-b97c-3e913f79c3ea',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '200',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated volume',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 2,
          appliedTaxes: [{ id: '83e835ea-ae89-4a1e-aa49-3d48286262d9', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '5575dc4f-f78c-4491-8ef0-9c778f1b4435',
            payInAdvance: false,
            invoiceDisplayName: 'rec count prorated volume',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'volume',
            minAmountCents: '0',
            prorated: true,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: '1.0',
            perUnitAmount: '1.0',
            perUnitTotalAmount: '1.0',
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count prorated volume' },
        },
        {
          id: '7b1557a9-5b94-4d2a-b453-a1f749fc27e3',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'Sum BM',
          itemName: 'Sum BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '4effc63f-c169-4ede-8dc7-6e9e23154dc3', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '422e93d6-1c10-4339-b327-2a3ca61581f5',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
              aggregationType: 'sum_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '11.0',
            units: '0.0',
          },
          metadata: { isNormalFee: true, displayName: 'Sum BM' },
        },
      ],
      feesInArrearsZero: [],
      feesInAdvance: [
        {
          id: '817ea1cc-f47b-4b48-806f-6a0ce03747a1',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '10000',
          description: null,
          feeType: 'subscription',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan sub arrears',
          units: 1,
          preciseUnitAmount: 100,
          appliedTaxes: [{ id: '03241fa4-63d6-4dfe-b038-8e6c7ba27e99', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: null,
          eventsCount: null,
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isSubscriptionFee: true,
            displayName: 'Monthly subscription fee - maxi plan sub arrears',
          },
        },
        {
          id: '9032acd1-a5c4-4c80-b500-94700d997d32',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '9999900',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'Advance recurring',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 99999,
          appliedTaxes: [{ id: '7375835a-359d-4740-b8f7-a4d8c823ccb7', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '0fc08fb5-7cc1-43bd-a7d2-d3fac8835d0c',
            payInAdvance: true,
            invoiceDisplayName: 'Advance recurring',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'Advance recurring' },
        },
        {
          id: 'a54a6f27-ac59-45b7-bc0d-4a42415c1e47',
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '66700',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated advance',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 667,
          appliedTaxes: [{ id: 'ea35ee38-2d5f-4453-8a87-ba7a92269837', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '054ca896-1e1c-4190-ad42-eed7c24b9270',
            payInAdvance: true,
            invoiceDisplayName: 'rec count prorated advance',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '0',
            prorated: true,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count prorated advance' },
        },
      ],
      feesInAdvanceZero: [],
      metadata: {
        differentBoundariesForSubscriptionAndCharges: true,
        subscriptionDisplayName: 'maxi plan sub arrears',
        fromDatetime: '2024-03-01T00:00:00Z',
        toDatetime: '2024-03-31T23:59:59Z',
        chargesFromDatetime: '2024-02-01T00:00:00Z',
        chargesToDatetime: '2024-02-29T23:59:59Z',
        inAdvanceChargesFromDatetime: null,
        inAdvanceChargesToDatetime: null,
        invoiceId: '1234',
      },
    },
    '5cf07951-4296-46d1-9ca1-d4e87d6e6928': {
      feesInArrears: [
        {
          id: 'c3b7bb85-cdde-4511-8e91-76491fcb51b8',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'Count BM',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '4318e992-6cd8-4030-8209-ecaa131a50e9', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '34fd251e-7210-410d-ab87-91b77a6a075b',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'graduated',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: [
              {
                flatUnitAmount: '0.0',
                fromValue: 0,
                perUnitAmount: '0.0',
                perUnitTotalAmount: '0.0',
                toValue: 1,
                totalWithFlatAmount: '0.0',
                units: '0.0',
              },
            ],
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'Count BM' },
        },
        {
          id: 'f1d47378-4850-419c-a296-b31f727a2da5',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated',
          itemName: 'Sum BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '2ec49341-adb2-4815-9f5c-ab82947060e9', taxRate: 25 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '05df220f-85dd-41a2-a0c3-dc5cc0eef533',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears graduated',
            billableMetric: {
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
              aggregationType: 'sum_agg',
            },
            chargeModel: 'graduated',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: [
              {
                flatUnitAmount: '0.0',
                fromValue: 0,
                perUnitAmount: '0.0',
                perUnitTotalAmount: '0.0',
                toValue: 1,
                totalWithFlatAmount: '0.0',
                units: '0.0',
              },
            ],
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears graduated' },
        },
        {
          id: 'cf0be687-7268-4466-ba0e-3fc147ad584a',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears graduated percentage',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'e5d5a002-578c-4bfb-85f8-3e8ea813fbb5', taxRate: 0 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '6e40b8bf-b9f3-447f-9bd3-14e6b3be3cd0',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears graduated percentage',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'graduated_percentage',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: [
              {
                flatUnitAmount: '0.0',
                fromValue: 0,
                perUnitTotalAmount: '0.0',
                rate: '1.0',
                toValue: 1,
                totalWithFlatAmount: '0.0',
                units: '0.0',
              },
            ],
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears graduated percentage' },
        },
        {
          id: '0a531d59-12d6-4804-a656-08cdd280b5df',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears package 1 dim',
          itemName: 'Count BM - One dimension',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '208270ae-38e5-4e41-a0f1-cd06a89271bd', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears package 1 dim',
            billableMetric: {
              id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
              name: 'Count BM - One dimension',
              aggregationType: 'count_agg',
            },
            chargeModel: 'package',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { region: ['france'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: 0,
            perPackageUnitAmount: '0.0',
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears package 1 dim • france',
          },
        },
        {
          id: 'a06ae8ab-d600-4745-ba0e-fa600496241f',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears package 1 dim',
          itemName: 'Count BM - One dimension',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '76c3feef-b010-4215-8730-5ffaeba16568', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '9ed0da11-0c27-4c45-a5a2-ae1a64e00cea',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears package 1 dim',
            billableMetric: {
              id: 'e78c6d05-db1c-4485-b82c-fc5c056d19be',
              name: 'Count BM - One dimension',
              aggregationType: 'count_agg',
            },
            chargeModel: 'package',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { region: ['italy'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: 0,
            perPackageUnitAmount: '0.0',
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears package 1 dim • italy',
          },
        },
        {
          id: '3b34a414-1c11-412a-848a-a4e6df9a9226',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'adcda98c-48ac-4a5a-b921-886a399b1935', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '25b455e4-1333-4c76-afc3-7398e5d58892',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            billableMetric: {
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
              aggregationType: 'count_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { provider: ['AWS'], region: ['europe'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '1.0',
            units: '0.0',
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears percentage 2 dim • AWS • europe',
          },
        },
        {
          id: 'ff612e87-40f9-4a24-a533-21778d3ada20',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '1315f59e-0a8f-45ec-831c-dc528f0e0d0b', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '25b455e4-1333-4c76-afc3-7398e5d58892',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            billableMetric: {
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
              aggregationType: 'count_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: { values: { provider: ['AWS'], region: ['usa'] } },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '2.0',
            units: '0.0',
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears percentage 2 dim • AWS • usa',
          },
        },
        {
          id: '9b96d481-e2b8-4eff-aa1d-1fd2190aad88',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage 2 dim',
          itemName: 'Count BM - Two dimensions',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '6b2c58c1-87a7-405f-8402-59b163a41d10', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '25b455e4-1333-4c76-afc3-7398e5d58892',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage 2 dim',
            billableMetric: {
              id: '1bcd941b-6ac4-4849-a4b8-7c793f6cebad',
              name: 'Count BM - Two dimensions',
              aggregationType: 'count_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          chargeFilter: {
            invoiceDisplayName: 'GOOOOOOOO USA!',
            values: { provider: ['Google'], region: ['usa'] },
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '3.0',
            units: '0.0',
          },
          metadata: {
            isFilterChildFee: true,
            displayName: 'metered arrears percentage 2 dim • GOOOOOOOO USA!',
          },
        },
        {
          id: '1acab4b6-1f30-450f-b87a-02dbf2ce31ec',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: '21cc7b6a-84e1-47a8-8450-507bfc403611', taxRate: 20 }],
          trueUpFee: { id: '599299c4-7519-44f6-9a48-26814677e2e0' },
          trueUpParentFee: null,
          charge: {
            id: '34e6b422-b03e-4512-9778-93c1ad465c21',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '1100000',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isNormalFee: true,
            displayName: 'metered arrears percentage minimum spending',
          },
        },
        {
          id: '599299c4-7519-44f6-9a48-26814677e2e0',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '1100000',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          units: 1,
          preciseUnitAmount: 11000,
          appliedTaxes: [{ id: 'ee18bd57-db30-4ea9-9640-24b1ca7ffd9a', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: { id: '1acab4b6-1f30-450f-b87a-02dbf2ce31ec' },
          charge: {
            id: '34e6b422-b03e-4512-9778-93c1ad465c21',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '1100000',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isTrueUpFee: true,
            displayName: 'metered arrears percentage minimum spending - True-up',
          },
        },
        {
          id: '9208414b-4ec3-46c8-9930-bb10a7086d8e',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears standard',
          itemName: 'Sum BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'e3fe0ef6-9ce1-4fbe-9e29-62bccd244b16', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '8c17937b-d5b5-42ab-bb6e-6b89651564db',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears standard',
            billableMetric: {
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
              aggregationType: 'sum_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears standard' },
        },
        {
          id: '9cd55b8d-380d-425c-a35d-8afd0f971b7b',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears volume',
          itemName: 'Count BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'afd99c92-ae12-44af-97bb-07fae721af40', taxRate: 0 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '06b2b65b-b1a7-4e43-82fc-dc5ed9738b3c',
            payInAdvance: false,
            invoiceDisplayName: 'metered arrears volume',
            billableMetric: {
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
              aggregationType: 'count_agg',
            },
            chargeModel: 'volume',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: '0.0',
            perUnitAmount: '0.0',
            perUnitTotalAmount: '0.0',
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'metered arrears volume' },
        },
        {
          id: 'cc82649b-37b5-4be2-9068-43665288a1d4',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '1000',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 10,
          appliedTaxes: [{ id: 'ee77a4ee-4013-4d74-8830-8cb2fb68fabb', taxRate: 20 }],
          trueUpFee: { id: '161c7a55-a56e-4f38-8009-ae6a3bd29edc' },
          trueUpParentFee: null,
          charge: {
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '9999900',
            prorated: false,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count' },
        },
        {
          id: '161c7a55-a56e-4f38-8009-ae6a3bd29edc',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '9998900',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 99989,
          appliedTaxes: [{ id: '8d47e1e3-8f75-446d-8c14-f8ba3b58c095', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: { id: 'cc82649b-37b5-4be2-9068-43665288a1d4' },
          charge: {
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '9999900',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isTrueUpFee: true, displayName: 'rec count - True-up' },
        },
        {
          id: 'c94363c5-6f45-490e-8b9f-7c4c41cd725e',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '200',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated graduated',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 2,
          appliedTaxes: [{ id: 'a0c2fc7c-c091-465a-8133-83c292557770', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: 'bc29cfb6-998f-422d-858f-6107dd905530',
            payInAdvance: false,
            invoiceDisplayName: 'rec count prorated graduated',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'graduated',
            minAmountCents: '0',
            prorated: true,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count prorated graduated' },
        },
        {
          id: '609a8c7a-756d-4468-a70b-a270183b22b7',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '200',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated volume',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 2,
          appliedTaxes: [{ id: '52a03e29-7a8c-445d-a143-579f38a84bf3', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '5575dc4f-f78c-4491-8ef0-9c778f1b4435',
            payInAdvance: false,
            invoiceDisplayName: 'rec count prorated volume',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'volume',
            minAmountCents: '0',
            prorated: true,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: '1.0',
            perUnitAmount: '1.0',
            perUnitTotalAmount: '1.0',
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count prorated volume' },
        },
        {
          id: '5e6acf8d-c7af-4c52-94ae-ad2784a25ad0',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '0',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'Sum BM',
          itemName: 'Sum BM',
          units: 0,
          preciseUnitAmount: 0,
          appliedTaxes: [{ id: 'de7d66ad-b9ca-464f-92da-ba2d4dba0609', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '422e93d6-1c10-4339-b327-2a3ca61581f5',
            payInAdvance: false,
            invoiceDisplayName: '',
            billableMetric: {
              id: '869d5637-5eb3-40db-8dbc-a87b8cd7a3f8',
              name: 'Sum BM',
              aggregationType: 'sum_agg',
            },
            chargeModel: 'percentage',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '0',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: '0.0',
            freeUnits: '0.0',
            paidUnits: '0.0',
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: '0.0',
            fixedFeeUnitAmount: '0.0',
            freeEvents: 0,
            minMaxAdjustmentTotalAmount: '0.0',
            paidEvents: 0,
            rate: '11.0',
            units: '0.0',
          },
          metadata: { isNormalFee: true, displayName: 'Sum BM' },
        },
      ],
      feesInArrearsZero: [],
      feesInAdvance: [
        {
          id: '626e9246-f986-4aa1-b586-3501f5b50dbc',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '10000',
          description: null,
          feeType: 'subscription',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan sub arrears',
          units: 1,
          preciseUnitAmount: 100,
          appliedTaxes: [{ id: 'de9197a3-4919-40ca-85cf-4db578fd1961', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: null,
          eventsCount: null,
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: {
            isSubscriptionFee: true,
            displayName: 'Monthly subscription fee - maxi plan sub arrears',
          },
        },
        {
          id: 'c67735cf-65df-451c-a956-20009200155d',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '9999900',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'Advance recurring',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 99999,
          appliedTaxes: [{ id: '3d930b1c-e237-46e5-8c14-0b9d178a9f79', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '0fc08fb5-7cc1-43bd-a7d2-d3fac8835d0c',
            payInAdvance: true,
            invoiceDisplayName: 'Advance recurring',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '0',
            prorated: false,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'Advance recurring' },
        },
        {
          id: '86ee400c-a0c5-4e7b-a6c4-0915a7296fcd',
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              name: 'maxi plan sub arrears',
              invoiceDisplayName: 'sub fee',
              interval: 'monthly',
            },
          },
          amountCents: '66700',
          description: null,
          feeType: 'charge',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated advance',
          itemName: 'rec count',
          units: 1,
          preciseUnitAmount: 667,
          appliedTaxes: [{ id: 'ec8d1e3c-6cee-40f4-8e4a-70850ceecded', taxRate: 20 }],
          trueUpFee: null,
          trueUpParentFee: null,
          charge: {
            id: '054ca896-1e1c-4190-ad42-eed7c24b9270',
            payInAdvance: true,
            invoiceDisplayName: 'rec count prorated advance',
            billableMetric: {
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
              aggregationType: 'unique_count_agg',
            },
            chargeModel: 'standard',
            minAmountCents: '0',
            prorated: true,
          },
          eventsCount: '1',
          amountDetails: {
            graduatedRanges: null,
            graduatedPercentageRanges: null,
            flatUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            freeUnits: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            freeEvents: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            rate: null,
            units: null,
          },
          metadata: { isNormalFee: true, displayName: 'rec count prorated advance' },
        },
      ],
      feesInAdvanceZero: [],
      metadata: {
        differentBoundariesForSubscriptionAndCharges: true,
        subscriptionDisplayName: 'maxi plan sub arrears',
        fromDatetime: '2024-03-11T00:00:00Z',
        toDatetime: '2024-04-10T23:59:59Z',
        chargesFromDatetime: '2024-02-11T00:00:00Z',
        chargesToDatetime: '2024-03-10T23:59:59Z',
        inAdvanceChargesFromDatetime: null,
        inAdvanceChargesToDatetime: null,
        invoiceId: '1234',
      },
    },
  },
}

export const orderedSubscriptionWithFees = {
  metadata: {
    hasAnyFeeParsed: true,
    hasAnyPositiveFeeParsed: true,
  },
  subscriptions: {
    '0b9e37a0-9589-49d0-9da1-e39887d89ac2': {
      feesInAdvance: [
        {
          amountCents: '10000',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '03241fa4-63d6-4dfe-b038-8e6c7ba27e99',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          eventsCount: null,
          feeType: 'subscription',
          id: '817ea1cc-f47b-4b48-806f-6a0ce03747a1',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan sub arrears',
          metadata: {
            displayName: 'Monthly subscription fee - maxi plan sub arrears',
            isSubscriptionFee: true,
          },
          preciseUnitAmount: 100,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '9999900',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '7375835a-359d-4740-b8f7-a4d8c823ccb7',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '0fc08fb5-7cc1-43bd-a7d2-d3fac8835d0c',
            invoiceDisplayName: 'Advance recurring',
            minAmountCents: '0',
            payInAdvance: true,
            prorated: false,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: '9032acd1-a5c4-4c80-b500-94700d997d32',
          invoiceDisplayName: null,
          invoiceName: 'Advance recurring',
          itemName: 'rec count',
          metadata: {
            displayName: 'Advance recurring',
            isNormalFee: true,
          },
          preciseUnitAmount: 99999,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '66700',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'ea35ee38-2d5f-4453-8a87-ba7a92269837',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '054ca896-1e1c-4190-ad42-eed7c24b9270',
            invoiceDisplayName: 'rec count prorated advance',
            minAmountCents: '0',
            payInAdvance: true,
            prorated: true,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: 'a54a6f27-ac59-45b7-bc0d-4a42415c1e47',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated advance',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count prorated advance',
            isNormalFee: true,
          },
          preciseUnitAmount: 667,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
      ],
      feesInAdvanceZero: [],
      feesInArrears: [
        {
          amountCents: '1100000',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'cebee521-58f7-4dfd-919e-cd51e3ccd8fc',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'standard',
            id: '34e6b422-b03e-4512-9778-93c1ad465c21',
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            minAmountCents: '1100000',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          eventsCount: '0',
          feeType: 'charge',
          id: '72dbfa60-2cf4-43d7-9884-8107ada8d60a',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears percentage minimum spending - True-up',
            isTrueUpFee: true,
          },
          preciseUnitAmount: 11000,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: {
            id: '061e4abe-9e92-4477-b5fb-987304f16735',
          },
          units: 1,
        },
        {
          amountCents: '1000',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'e3e9793f-0f4c-4e6a-ae92-1f0f24658f38',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            invoiceDisplayName: '',
            minAmountCents: '9999900',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: 'f9aeb27c-4261-495b-86cb-c4ebea335ca5',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count',
            isNormalFee: true,
          },
          preciseUnitAmount: 10,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: {
            id: 'cff1026b-baec-4fe2-a725-99532769865a',
          },
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '9998900',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'baddf7d2-f84c-4424-a970-d0e9075eb0b3',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            invoiceDisplayName: '',
            minAmountCents: '9999900',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          eventsCount: '0',
          feeType: 'charge',
          id: 'cff1026b-baec-4fe2-a725-99532769865a',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count - True-up',
            isTrueUpFee: true,
          },
          preciseUnitAmount: 99989,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: {
            id: 'f9aeb27c-4261-495b-86cb-c4ebea335ca5',
          },
          units: 1,
        },
        {
          amountCents: '200',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '1c1b3281-73e7-4113-a3de-650f462b0157',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'graduated',
            id: 'bc29cfb6-998f-422d-858f-6107dd905530',
            invoiceDisplayName: 'rec count prorated graduated',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: true,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: '1d19eec2-3ba6-49bc-8767-66f8e4b8b83a',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated graduated',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count prorated graduated',
            isNormalFee: true,
          },
          preciseUnitAmount: 2,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '200',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: '1.0',
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: '1.0',
            perUnitTotalAmount: '1.0',
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '83e835ea-ae89-4a1e-aa49-3d48286262d9',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'volume',
            id: '5575dc4f-f78c-4491-8ef0-9c778f1b4435',
            invoiceDisplayName: 'rec count prorated volume',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: true,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: '2398dd5c-6558-45df-b97c-3e913f79c3ea',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated volume',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count prorated volume',
            isNormalFee: true,
          },
          preciseUnitAmount: 2,
          subscription: {
            id: '0b9e37a0-9589-49d0-9da1-e39887d89ac2',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
      ],
      feesInArrearsZero: [],
      metadata: {
        chargesFromDatetime: '2024-02-01T00:00:00Z',
        chargesToDatetime: '2024-02-29T23:59:59Z',
        differentBoundariesForSubscriptionAndCharges: true,
        fromDatetime: '2024-03-01T00:00:00Z',
        inAdvanceChargesFromDatetime: null,
        inAdvanceChargesToDatetime: null,
        invoiceId: '1234',
        subscriptionDisplayName: 'maxi plan sub arrears',
        toDatetime: '2024-03-31T23:59:59Z',
      },
    },
    '5cf07951-4296-46d1-9ca1-d4e87d6e6928': {
      feesInAdvance: [
        {
          amountCents: '10000',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'de9197a3-4919-40ca-85cf-4db578fd1961',
              taxRate: 20,
            },
          ],
          charge: null,
          description: null,
          eventsCount: null,
          feeType: 'subscription',
          id: '626e9246-f986-4aa1-b586-3501f5b50dbc',
          invoiceDisplayName: null,
          invoiceName: 'sub fee',
          itemName: 'maxi plan sub arrears',
          metadata: {
            displayName: 'Monthly subscription fee - maxi plan sub arrears',
            isSubscriptionFee: true,
          },
          preciseUnitAmount: 100,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '9999900',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '3d930b1c-e237-46e5-8c14-0b9d178a9f79',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '0fc08fb5-7cc1-43bd-a7d2-d3fac8835d0c',
            invoiceDisplayName: 'Advance recurring',
            minAmountCents: '0',
            payInAdvance: true,
            prorated: false,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: 'c67735cf-65df-451c-a956-20009200155d',
          invoiceDisplayName: null,
          invoiceName: 'Advance recurring',
          itemName: 'rec count',
          metadata: {
            displayName: 'Advance recurring',
            isNormalFee: true,
          },
          preciseUnitAmount: 99999,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '66700',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'ec8d1e3c-6cee-40f4-8e4a-70850ceecded',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '054ca896-1e1c-4190-ad42-eed7c24b9270',
            invoiceDisplayName: 'rec count prorated advance',
            minAmountCents: '0',
            payInAdvance: true,
            prorated: true,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: '86ee400c-a0c5-4e7b-a6c4-0915a7296fcd',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated advance',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count prorated advance',
            isNormalFee: true,
          },
          preciseUnitAmount: 667,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
      ],
      feesInAdvanceZero: [],
      feesInArrears: [
        {
          amountCents: '1100000',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'ee18bd57-db30-4ea9-9640-24b1ca7ffd9a',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'count_agg',
              id: 'efd12be5-f4fd-4f22-8c81-9fb0cd98b0a8',
              name: 'Count BM',
            },
            chargeModel: 'standard',
            id: '34e6b422-b03e-4512-9778-93c1ad465c21',
            invoiceDisplayName: 'metered arrears percentage minimum spending',
            minAmountCents: '1100000',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          eventsCount: '0',
          feeType: 'charge',
          id: '599299c4-7519-44f6-9a48-26814677e2e0',
          invoiceDisplayName: null,
          invoiceName: 'metered arrears percentage minimum spending',
          itemName: 'Count BM',
          metadata: {
            displayName: 'metered arrears percentage minimum spending - True-up',
            isTrueUpFee: true,
          },
          preciseUnitAmount: 11000,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: {
            id: '1acab4b6-1f30-450f-b87a-02dbf2ce31ec',
          },
          units: 1,
        },
        {
          amountCents: '1000',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'ee77a4ee-4013-4d74-8830-8cb2fb68fabb',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            invoiceDisplayName: '',
            minAmountCents: '9999900',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: 'cc82649b-37b5-4be2-9068-43665288a1d4',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count',
            isNormalFee: true,
          },
          preciseUnitAmount: 10,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: {
            id: '161c7a55-a56e-4f38-8009-ae6a3bd29edc',
          },
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '9998900',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '8d47e1e3-8f75-446d-8c14-f8ba3b58c095',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'standard',
            id: '8b6a6273-6f61-4616-946d-8604edf49f4e',
            invoiceDisplayName: '',
            minAmountCents: '9999900',
            payInAdvance: false,
            prorated: false,
          },
          description: null,
          eventsCount: '0',
          feeType: 'charge',
          id: '161c7a55-a56e-4f38-8009-ae6a3bd29edc',
          invoiceDisplayName: null,
          invoiceName: 'rec count',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count - True-up',
            isTrueUpFee: true,
          },
          preciseUnitAmount: 99989,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: {
            id: 'cc82649b-37b5-4be2-9068-43665288a1d4',
          },
          units: 1,
        },
        {
          amountCents: '200',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: null,
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: null,
            perUnitTotalAmount: null,
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: 'a0c2fc7c-c091-465a-8133-83c292557770',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'graduated',
            id: 'bc29cfb6-998f-422d-858f-6107dd905530',
            invoiceDisplayName: 'rec count prorated graduated',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: true,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: 'c94363c5-6f45-490e-8b9f-7c4c41cd725e',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated graduated',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count prorated graduated',
            isNormalFee: true,
          },
          preciseUnitAmount: 2,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
        {
          amountCents: '200',
          amountDetails: {
            fixedFeeTotalAmount: null,
            fixedFeeUnitAmount: null,
            flatUnitAmount: '1.0',
            freeEvents: null,
            freeUnits: null,
            graduatedPercentageRanges: null,
            graduatedRanges: null,
            minMaxAdjustmentTotalAmount: null,
            paidEvents: null,
            paidUnits: null,
            perPackageSize: null,
            perPackageUnitAmount: null,
            perUnitAmount: '1.0',
            perUnitTotalAmount: '1.0',
            rate: null,
            units: null,
          },
          appliedTaxes: [
            {
              id: '52a03e29-7a8c-445d-a143-579f38a84bf3',
              taxRate: 20,
            },
          ],
          charge: {
            billableMetric: {
              aggregationType: 'unique_count_agg',
              id: 'aecf4a46-c08c-48a0-88c1-dc1c894f9bf2',
              name: 'rec count',
            },
            chargeModel: 'volume',
            id: '5575dc4f-f78c-4491-8ef0-9c778f1b4435',
            invoiceDisplayName: 'rec count prorated volume',
            minAmountCents: '0',
            payInAdvance: false,
            prorated: true,
          },
          description: null,
          eventsCount: '1',
          feeType: 'charge',
          id: '609a8c7a-756d-4468-a70b-a270183b22b7',
          invoiceDisplayName: null,
          invoiceName: 'rec count prorated volume',
          itemName: 'rec count',
          metadata: {
            displayName: 'rec count prorated volume',
            isNormalFee: true,
          },
          preciseUnitAmount: 2,
          subscription: {
            id: '5cf07951-4296-46d1-9ca1-d4e87d6e6928',
            name: '',
            plan: {
              id: 'ee3f1bf6-1be1-4def-b5b9-2b0bffba15ce',
              interval: 'monthly',
              invoiceDisplayName: 'sub fee',
              name: 'maxi plan sub arrears',
            },
          },
          trueUpFee: null,
          trueUpParentFee: null,
          units: 1,
        },
      ],
      feesInArrearsZero: [],
      metadata: {
        chargesFromDatetime: '2024-02-11T00:00:00Z',
        chargesToDatetime: '2024-03-10T23:59:59Z',
        differentBoundariesForSubscriptionAndCharges: true,
        fromDatetime: '2024-03-11T00:00:00Z',
        inAdvanceChargesFromDatetime: null,
        inAdvanceChargesToDatetime: null,
        invoiceId: '1234',
        subscriptionDisplayName: 'maxi plan sub arrears',
        toDatetime: '2024-04-10T23:59:59Z',
      },
    },
  },
}
